package com.yl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lfs
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "USER_ID", type = IdType.AUTO)
    private Long userId;

    @TableField("NAME")
    private String name;

    @TableField("SEX")
    private String sex;

    @TableField("SCHOOL")
    private String school;

    @TableField("GRADE")
    private String grade;

    @TableField("CLASS_NAME")
    private String className;

    @TableField("MOBILE")
    private String mobile;

    @TableField("AVATAR")
    private String avatar;

    @TableField("REG_TIME")
    private String regTime;

    @TableField("OPEN_ID")
    private String openId;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
